package controller

import (
	"datum_user/config"
	"datum_user/utils"
	"github.com/gin-gonic/gin"
)

func GetVerify5Token(c *gin.Context) {
	token, err := utils.GetVerify5Token()
	if err != nil {
		ToJson(c, 201, err.Error(), nil)
	} else {
		ToJson(c, 200, "ok", map[string]string{"token": token, "host": config.GetString("verify5.host")})
	}
}
